#include "thread.hpp"
#include <unistd.h>
using namespace threadspace;


void Count(int cnt)
{
    while(cnt--)
    {
        std::cout << "这是一个新线程……" << std::endl;
        sleep(1);
    }
}
int main()
{
    int cnt = 10;

    Thread<int> t1(Count, cnt);

    t1.Start();

    t1.Stop();

    t1.Join();
    return 0;
}